const path = require("path");
const customVueLoader = require.resolve("./plugin/custom-vue-loader.js");

module.exports = {
  publicPath: "./",
  configureWebpack: {
    // 开发生产共同配置
    resolve: {
      extensions: [".ts", ".js", ".vue", ".less"],
      alias: {
        "@": path.resolve(__dirname, "./src"),
        "@echart": path.resolve(__dirname, "./echart")
      }
    },
    module: {
      rules: [
        {
          resourceQuery: /blockType=docs/,
          loader: customVueLoader
        }
      ]
    }
  }
};
